$(function (global) {
    global.search = (function (search) {

        var pairs = search.slice(1).split('&');
        var result = {};
        pairs.forEach(function (pair) {
            if (pair && pair.indexOf('=') !== -1) {
                pair = pair.split('=');
                //兼容写法
                result[pair[0]] = result[
                    pair[0].toLocaleLowerCase()
                    ] = decodeURIComponent(pair[1] || '');
            }
        });
        return JSON.parse(JSON.stringify(result));
    })(location.search);
}(window));

function  init() {
    console.log('123455');
    console.log(search.storeId);
}

init();

$(document).ready(function () {

})

